home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr35 / jamapi.zip / JAMUTIL.ZIP / JAMUTIL.H < prev    next >
Text File  |  1993-07-01  |  3KB  |  123 lines

  1. /*
  2. **  JAM(mbp) - The Joaquim-Andrew-Mats Message Base Proposal
  3. **
  4. **  JAM Utility
  5. **
  6. **  Written by Mats Wallin & Mats Birch
  7. **
  8. **  ----------------------------------------------------------------------
  9. **
  10. **  jamutil.h (JAMmb)
  11. **
  12. **  Definitions for JAMUTIL.C
  13. **
  14. **  Copyright 1993 Joaquim Homrighausen, Andrew Milner, Mats Birch, and
  15. **  Mats Wallin. ALL RIGHTS RESERVED.
  16. **
  17. **  93-06-28    MW
  18. **  Initial coding
  19. */
  20.  
  21. /*
  22. **  Buffer size allocated for the JAM API functions.     
  23. **  This buffer is used when reading message text and    
  24. **  message header subfields                             
  25. */
  26.  
  27. #define WORKBUFSIZE       0x8000
  28.  
  29.  
  30. /*
  31. **  Structure where the names of all known SUBFIELDS are stored 
  32. */
  33.  
  34. typedef struct
  35.   {
  36.   unsigned    LoID,               /* Subfield id, low word */
  37.               HiID;               /* "-, reserved */
  38.   CHAR8     * pName;              /* Name of subfield */
  39.   } SUBFLDINFO;
  40.  
  41.  
  42. /*
  43. **  Define the JAMAPIREC variable, used in almost all calls to the 
  44. **  JAM API, and contains information about the currently opened   
  45. **  messagebase, and the last message read                         
  46. */
  47.  
  48. JAMAPIREC JamRec;
  49.  
  50.  
  51. /*
  52. **  Define name of all attributes. The first name is the attribute 
  53. **  with the value 0x00000001, and the last name is the attribute  
  54. **  with the value 0x80000000                                      
  55. */
  56.  
  57. CHAR8     AttrName [32][16] =
  58.               {
  59.               "Local",
  60.               "Transit",
  61.               "Pvt",
  62.               "Rcvd",
  63.               "Sent",
  64.               "Kill",
  65.               "Arch",
  66.               "Hold",
  67.               "Crash",
  68.               "Imm",
  69.               "Dir",
  70.               "Gate",
  71.               "Req",
  72.               "File",
  73.               "Trunc/Sent",
  74.               "Kill/Sent",
  75.               "Rcpt",
  76.               "Conf",
  77.               "Orphan",
  78.               "Encrypt",
  79.               "Comp",
  80.               "Esc",
  81.               "Fpu",
  82.               "TypeLocal",
  83.               "TypeEcho",
  84.               "TypeNet",
  85.               "n/a1",
  86.               "n/a2",
  87.               "NoDisp",
  88.               "Lock",
  89.               "Del"
  90.               };
  91.  
  92.  
  93. /*
  94. **  Define names for all subfields 
  95. */
  96.  
  97. SUBFLDINFO    SubFieldInfo [] =
  98.   {
  99.     { JAMSFLD_OADDRESS,     0, "OriginAddress"    },
  100.     { JAMSFLD_DADDRESS,     0, "DestAddress"      },
  101.     { JAMSFLD_SENDERNAME,   0, "SenderName"       },
  102.     { JAMSFLD_RECVRNAME,    0, "ReceiverName"     },
  103.     { JAMSFLD_MSGID,        0, "MsgId"            },
  104.     { JAMSFLD_REPLYID,      0, "ReplyId"          },
  105.     { JAMSFLD_SUBJECT,      0, "Subject"          },
  106.     { JAMSFLD_PID,          0, "PID"              },
  107.     { JAMSFLD_TRACE,        0, "Trace"            },
  108.     { JAMSFLD_ENCLFILE,     0, "EnclFile"         },
  109.     { JAMSFLD_ENCLFWALIAS,  0, "EnclFileWAlias"   },
  110.     { JAMSFLD_ENCLFREQ,     0, "EnclFreq"         },
  111.     { JAMSFLD_ENCLFILEWC,   0, "EnclFileWildCard" },
  112.     { JAMSFLD_ENCLINDFILE,  0, "EnclIndirectFile" },
  113.     { JAMSFLD_EMBINDAT,     0, "Embindat"         },
  114.     { JAMSFLD_FTSKLUDGE,    0, "FTS kludge"       },
  115.     { JAMSFLD_SEENBY2D,     0, "Seen-By 2d"       },
  116.     { JAMSFLD_PATH2D,       0, "Path 2d"          },
  117.     { JAMSFLD_FLAGS,        0, "Flags"            },
  118.     { JAMSFLD_TZUTCINFO,    0, "TZUTC info"       }
  119.   };
  120.  
  121.  
  122. /* end of file "jamutil.h" */
  123.